﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="List_Job.ascx.cs" Inherits="TuyenDungViecLam.User_control_VN.List_Job" %>
<%@ Register Src="Job_Of_Company.ascx" TagName="Job_Of_Company" TagPrefix="uc1" %>

<div class="art-Block">
    <div class="art-Block-tl">
    </div>
    <div class="art-Block-tr">
    </div>
    <div class="art-Block-bl">
    </div>
    <div class="art-Block-br">
    </div>
    <div class="art-Block-tc">
    </div>
    <div class="art-Block-bc">
    </div>
    <div class="art-Block-cl">
    </div>
    <div class="art-Block-cr">
    </div>
    <div class="art-Block-cc">
    </div>
    <div class="art-Block-body">
        <div class="art-BlockHeader">
            <div class="art-header-tag-icon">
                <div class="t">
                    Các tin đã đăng</div>
            </div>
        </div>
        <div class="art-BlockContent" style="padding-left: 0px; padding-right: 0px">
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <center>
                        Nhà tuyển dụng :
                        <asp:DropDownList ID="dlnhatuyendung" runat="server" AutoPostBack="True" OnSelectedIndexChanged="dlnhatuyendung_SelectedIndexChanged1"
                            Width="200px">
                        </asp:DropDownList>
                    </center>
                    <br />
                    <asp:GridView ID="dscongviec" runat="server" AutoGenerateColumns="False" Width="100%"
                        CellPadding="0" ForeColor="#333333" GridLines="None" AllowPaging="True" OnPageIndexChanging="dscongviec_PageIndexChanging"
                        OnRowCommand="dscongviec_RowCommand" OnRowDeleting="dscongviec_RowDeleting" PageSize="1">
                        <RowStyle CssClass="RowsGridMain" BackColor="white" ForeColor="#333333" />
                        <Columns>
                            <asp:TemplateField HeaderText="Chức danh" SortExpression="ChucNang">
                                <ItemTemplate>
                                    <a href='<%# "SuaTin.aspx?Mcv=" + Eval("MaCongViec") +"&Mct=" + Eval("MaCongTy") + "&Edit=0" %>'
                                        onmousemove="BBTOnline_ShowTooltip('../VN/TootTip.aspx?Mcv=<%# Eval("MaCongViec") %>')"
                                        onmouseout="BBTOnline_HideTooltip()">
                                        <%# Eval("ChucDanh")%></a>
                                    <asp:Label ID="lbmacongviec" runat="server" Text='<%# Eval("MaCongViec") %>' Visible="false"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle VerticalAlign="Top" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Địa điểm" SortExpression="NoiLamViec">
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("NoiLamViec") %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle Width="150px" />
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="Ngày đăng" DataField="NgayDang" DataFormatString="{0:dd/MM/yyyy}"
                                SortExpression="NgayDang">
                                <ItemStyle Width="120px" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="Lương" DataField="MucLuong" SortExpression="MucLuong">
                                <ItemStyle Width="120px" />
                            </asp:BoundField>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:ImageButton ID="ImageButton1" CommandName="Edit" CommandArgument='<%# Eval("MaCongViec") %>'
                                        runat="server" ImageUrl="~/images/page-edit-icon.png" />&nbsp;&nbsp;
                                    <asp:ImageButton ID="ImageButton2" runat="server" CommandName="Delete" CommandArgument='<%# Eval("MaCongViec") %>'
                                        OnClientClick="if(!confirm('Bạn không muốn xóa công việc này không ?')) return false;"
                                        ImageUrl="~/images/delete-icon.png" />
                                </ItemTemplate>
                                <ItemStyle Width="100px" />
                            </asp:TemplateField>
                            <%--<asp:CommandField ShowCancelButton="False" ShowDeleteButton="True" DeleteImageUrl="~/images/delete-icon.png"
                                ShowEditButton="false" ButtonType="Image">
                                <ItemStyle HorizontalAlign="Center" Width="25px" />
                            </asp:CommandField>--%>
                        </Columns>
                        <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" CssClass="PagingGrid" />
                        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                        <HeaderStyle CssClass="HeaderGrid" />
                        <AlternatingRowStyle CssClass="RowsGrid" />
                    </asp:GridView>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </div>
</div>
